package com.kxmall.huishou.domain.bo;

import com.kxmall.common.core.domain.BaseEntity;
import com.kxmall.common.core.validate.AddGroup;
import com.kxmall.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 环保科普信息业务对象 hs_waste_news
 *
 * @author kxmall
 * @date 2023-11-23
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class HsWasteNewsBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 来源网站
     */
//    @NotBlank(message = "来源网站不能为空", groups = { AddGroup.class, EditGroup.class })
    private String source;

    /**
     * 作者
     */
    @NotBlank(message = "作者不能为空", groups = { AddGroup.class, EditGroup.class })
    private String author;

    /**
     * 展示图片地址
     */
    @NotBlank(message = "展示图片地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imgUrl;


}
